/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 获利分析代码维护(OEM)


// 列表	 /tmFiAnalysisCode/listRecord	POST
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/tmFiAnalysisCode/listRecord`, params)

// 编辑/保存	 /tmFiAnalysisCode/addOrUpdate	POST
export const addOrUpdate = (params) => axios.post(`${SERVER.WHOLESALES}/tmFiAnalysisCode/addOrUpdate`, params)

// 订单细分下拉	 /tmFiAnalysisCode/listOrderType	GET
export const listOrderType = (params) => axios.get(`${SERVER.WHOLESALES}/tmFiAnalysisCode/listOrderType`, {
  params
})

// 详情查询	 /tmFiAnalysisCode/getDetail?id=1	GET
export const getDetail = (Id) => axios.get(`${SERVER.WHOLESALES}/tmFiAnalysisCode/getDetail?id=${Id}`)
